package BusinessDelegatePattern;

/**
 * @Author: zheng
 * @CreateTime: 2022-08-27  00:20
 * @Description:
 * @Version: 1.0
 */
public class BusinessLookUp {
    public BusinessService getBusinessService(String serviceType){
        if(serviceType.equalsIgnoreCase("EJB")){
            return new EJBService();
        }else {
            return new JMSService();
        }
    }
}